*::after, *::before {
  box-sizing: border-box;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  background: #ac53ec;
  min-height: 100vh;
}

.card {
  position: relative;
  width: 300px;
  height: 400px;
  background: #ac53ec;
  border-radius: 40px;
  box-shadow: inset 5px 5px 15px rgba(0,0,0,.15),
    inset -5px -5px 15px rgba(255,255,255,.15),
    5px 5px 15px rgba(0,0,0,.15),
    -5px -5px 15px rgba(255,255,255,.15);
}

.card::before {
  content: '';
  position: absolute;
  inset: 5px;
  background: #FFF;
  border-radius: 35px;
  transition: .5s;
}

.card:hover::before {
  transform: translate(40px , -40px);
  box-shadow: -30px 30px 50px rgba(0,0,0,.25);
}